package persistence.implementation.factory;

import persistence.implementation.CacheDatabase;
import persistence.interfaces.Database;

public class DatabaseFactory {
	public static Database buildDatabase(DatabaseType type) {
		Database database = null;
        switch (type) {
        case CACHE:
        	database = new CacheDatabase();
            break;
 
        default:
            // throw some exception
            break;
        }
    	return database;
	}

}
